package cn.itcast.com.Object.clone;

public class mode implements Cloneable{
    int i;
    String name;
    double j;

    public static void main(String[] args) throws CloneNotSupportedException {
        int i = 1;
        String name = "lee million";
        double j = 9.9;
        mode mode = new mode(i, name, j);

        Object clone1 = (mode) mode.clone();
        System.out.println(mode == clone1);
    }

    public mode(int i, String name, double j) {
        this.i = i;
        this.name = name;
        this.j = j;
    }

    @Override
    public String toString() {
        return "mode{" +
                "i=" + i +
                ", name='" + name + '\'' +
                ", j=" + j +
                '}';
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
